Skip to content

Conversation

daguanren21
Copy link
Contributor

@daguanren21 daguanren21 commented Jul 17, 2025

slidev 启动时,偶现页面加载失败

const printRange = ref(parseRangeString(slides.value.length, currentRoute.query.range as string | undefined))

提示currentRoute undefined 无法拿到 query
image

解决方式
const printRange = ref(parseRangeString(slides.value.length, currentRoute?.query?.range as string | undefined))

Copy link

netlify bot commented Jul 17, 2025

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit 05444a8
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/687897a7ca4b6e0008fdb63c
😎 Deploy Preview https://deploy-preview-2231--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

pkg-pr-new bot commented Jul 25, 2025

Open in StackBlitz

@slidev/client

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/client@2231

create-slidev

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev@2231

create-slidev-theme

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev-theme@2231

@slidev/parser

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/parser@2231

@slidev/cli

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/cli@2231

@slidev/types

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/types@2231

commit: 05444a8

@antfu antfu merged commit 6da0da9 into slidevjs:main Jul 27, 2025
20 checks passed
antfu pushed a commit to naitokosuke/slidev that referenced this pull request Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants